package com.demo.proxy;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

import sun.misc.ProxyGenerator;
public class Test3 {

	public static void main(String[] args) throws Exception {
		byte[] classCode=ProxyGenerator.generateProxyClass("$Proxy0", TicketImpl.class.getInterfaces());
		FileOutputStream fos = new FileOutputStream("d:\\$Proxy0.class");
		fos.write(classCode);
		fos.close();
	}

}
